package com.kunbo.cn.entity.core.logistics;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
import lombok.Data;
/**
 * 
 * <p>Title: TrafficUnit</p>
 * <p>Description: 运输单位实体模型</p>
 * <p>Company: www.kunbo.cn</p> 
 * @author	yang'f
 * @date	2019年3月14日下午3:51:53
 * @version 1.0
 */
@Entity
@Table(name="transport_unit_management")
@GenericGenerator(name = "jpa-uuid", strategy = "uuid")
@EntityListeners(AuditingEntityListener.class)
@Data
public class TrafficUnit implements Serializable{
	//** serialVersionUID*//*
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(generator = "jpa-uuid")
    @Column(length = 32)
	private String uuid;//主键uuid
	@CreatedDate
    private Date createTime;//制单时间
    @LastModifiedDate
    private Date lastModifiedTime;//修改时间
    @Column(name="transport_unit_number")
    private String transportUnitNumber;//运输单位编号
    @Column(name="name_of_transport_unit")
    private String nameOfTransportUnit;//运输单位名称
    @Column(name="contact_number")
    private String contactNumber;//联系电话
    @Column(name="company_address")
    private String companyAddress;//公司地址
    @Column(name="login_id")
    private String loginId;//登录id
    @Column(name="login_password")
    private String loginPassword;//登录密码
    @Column(name="add_mechanism")
    private String addMechanism;//添加机构
    @Column(name="is_it_permitted")
    private String isItPermitted;//是否允许  是=true，否=false

}
